//
//  ATUserManager.m
//  Adorable_Things
//
//  Created by lanou on 16/1/20.
//  Copyright © 2016年 Banana Inc. All rights reserved.
//

#import "ATUserManager.h"
#import "FMDatabase.h"


@interface ATUserManager ()

@property (nonatomic, strong) FMDatabase *db;

@end

@implementation ATUserManager

+ (instancetype)shareManager
{
    static ATUserManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[ATUserManager alloc] init];
        
    });
    return manager;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self readUserFileInfor];
    }
    return self;
}



- (void)readUserFileInfor
{
    NSDictionary *dic = [NSDictionary dictionaryWithContentsOfFile:kUserInfor];
    _isLogin = [dic[@"isLogin"] integerValue];
    _auth_token = dic[@"auth_token"];
}




@end
